//
//  VerifyCodeLoginTopView.swift
//  test-ios
//
//  Created by wyz5204 on 2023/3/1.
//

import UIKit
import RxSwift
import RxCocoa

class VerifyCodeLoginTopView: UIView {
    
    private lazy var iconView:UIImageView = {
        return UIImageView().then { view in
            view.image = UIImage.init(named: "AppIcon")
        }
    }()
    
    private lazy var titleLabel:UILabel = {
        return UILabel().then { view in
            view.text = "短信验证码登录"
            view.font = UIFont.boldSystemFont(ofSize: 24)
            view.textColor = .black
        }
    }()
    
    private lazy var bottomLabel:UILabel = {
        return UILabel().then { view in
            view.text = "未注册手机验证后自动登录"
            view.font = UIFont.boldSystemFont(ofSize: 13)
            view.textColor = UIColor.black
        }
    }()
    
    private lazy var loginBt : UIButton = {
        return UIButton()
    }()
    
    
    func initView(){
        iconView.addTo(self) { view in
            view.snp.makeConstraints { (make) in
                make.left.top.equalToSuperview()
                make.width.height.equalTo(36)
            }
        }
        
        titleLabel.addTo(self) { view in
            view.snp.makeConstraints { (make) in
                make.left.equalToSuperview()
                make.top.equalTo(iconView.snp.bottom).offset(12)
            }
        }
        
        bottomLabel.addTo(self) { view in
            view.snp.makeConstraints { (make) in
                make.left.equalToSuperview()
                make.top.equalTo(titleLabel.snp.bottom).offset(5)
            }
        }
        
    }
    
    
    required init?(coder: NSCoder) {
        fatalError("VerifyCodeLoginTopView  >>>>> init(coder:) has not been implemented")
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        initView()
    }
}
